package com.heartskyhigh.order.pojo;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Luo Zhen
 * @create 2019-11-19 9:12
 */
@Data
@Entity
@DynamicUpdate
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = -2719651573132795021L;
    @Id
    private String detailId;

    private String orderId;

    private String productId;

    private String productName;

    private BigDecimal productPrice;

    private Integer productQuantity;

    private String productIcon;

    private Date createTime;

    private Date updateTime;

}
